package nav

/*
#include<stdint.h>
#include<stdbool.h>
extern bool nav_dtStatusDetail(unsigned int status,unsigned int detail);
extern bool nav_dtStatusFailed(unsigned int status);
extern bool nav_dtStatusInProgress(unsigned int status);
extern bool nav_dtStatusSucceed(unsigned int status);

*/
import "C"
import "unsafe"
import "gitee.com/hasika/cgo"

var _ unsafe.Pointer
var _ cgo.NotUsed

/*
Returns true if specific detail is set.

bool dtStatusDetail(dtStatus status, unsigned int detail)
*/
func DtStatusDetail(status uint32, detail uint32) bool {
	var wrap_arg_status C.uint
	var wrap_arg_detail C.uint
	wrap_arg_status = (C.uint)(status)
	wrap_arg_detail = (C.uint)(detail)
	wrap_out := C.nav_dtStatusDetail(wrap_arg_status, wrap_arg_detail)
	go_out := bool(wrap_out)
	return go_out
}

/*
Returns true of status is failure.

bool dtStatusFailed(dtStatus status)
*/
func DtStatusFailed(status uint32) bool {
	var wrap_arg_status C.uint
	wrap_arg_status = (C.uint)(status)
	wrap_out := C.nav_dtStatusFailed(wrap_arg_status)
	go_out := bool(wrap_out)
	return go_out
}

/*
Returns true of status is in progress.

bool dtStatusInProgress(dtStatus status)
*/
func DtStatusInProgress(status uint32) bool {
	var wrap_arg_status C.uint
	wrap_arg_status = (C.uint)(status)
	wrap_out := C.nav_dtStatusInProgress(wrap_arg_status)
	go_out := bool(wrap_out)
	return go_out
}

/*
Returns true of status is success.

bool dtStatusSucceed(dtStatus status)
*/
func DtStatusSucceed(status uint32) bool {
	var wrap_arg_status C.uint
	wrap_arg_status = (C.uint)(status)
	wrap_out := C.nav_dtStatusSucceed(wrap_arg_status)
	go_out := bool(wrap_out)
	return go_out
}
